package icu.zqyhdm.blog.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Description 评论的实体类
 * @Author lifu
 * @Date 2021/6/22 14:57
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("comment")
@ApiModel(description = "用户评论")
public class Comment extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @TableField(value = "author_id")
    private Integer authorId;

    @ApiModelProperty(value = "内容")
    @TableField(value = "content")
    private String content;

    @ApiModelProperty(value = "评论所属文章id")
    @TableField(value = "article_id")
    private Integer articleId;

    @ApiModelProperty(value = "所属的父评论的id")
    @TableField(value = "parent_comment_id")
    private Integer parentCommentId;

    @ApiModelProperty(value = "评论的对象用户id")
    @TableField(value = "parent_comment_user")
    private Integer parentCommentUser;

    @ApiModelProperty(value = "审核状态(1:通过，0:待审核)")
    @TableField("status")
    private Integer status;

}
